<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/1/9
 * Time: 15:59
 */


$mysqli=@new mysqli("localhost","root","","sente");
if($mysqli->connect_errno){
    $mysqli=@new mysqli(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS,SAE_MYSQL_DB);
    if($mysqli->connect_errno){
        die("数据库连接失败:".$mysqli->connect_error);
    }
}
$mysqli->set_charset("utf8");

?>
